package ua.org.nuos.sdms.middle.entity.enums;

/**
 * Created by IntelliJ IDEA.
 * User: dio
 * Date: 09.10.11
 * Time: 20:23
 * To change this template use File | Settings | File Templates.
 */
public enum Role {
    ADMINISTRATOR, CLIENT;

    /**
     * role names (from sun-application.xml)
     */
    public static final String administrator = "Administrator";
    public static final String client = "Client";

    @Override
    public String toString() {
        switch (this) {
            case ADMINISTRATOR:
                return administrator;
            case CLIENT:
                return client;
            default:
                return null;
        }
    }
}
